package br.ufc.ck0017.syntaxtree;

import br.ufc.ck0017.visitor.Visitor;

public class MethodDecl {
  public Type t;
  public Identifier i;
  public FormalList fl;
  public VarDeclList vl;
  public StatementList sl;
  public Exp e;

  public MethodDecl(Type at, Identifier ai, FormalList afl, VarDeclList avl, 
                    StatementList asl, Exp ae) {
    t=at; i=ai; fl=afl; vl=avl; sl=asl; e=ae;
  }

  public <T> T accept(Visitor<T> v) {
    return v.visit(this);
  }
}
